﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SignUp.ascx.cs" Inherits="Application_Controls_SignUp" %>
<CART:MessageBox runat="server" ID="MessageBoxNewUser" />
<table cellpadding="0" cellspacing="1">
<tr>
	<th class="CategoryHeadCenter" colspan="2">
		<asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Resource,  NewUser %>"></asp:Literal>
	</th>
</tr>
<tr>
	<td><asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Resource,  FullName %>"></asp:Literal>:</td>
	<td>
		<asp:TextBox runat="server" ID="TextBoxFullName"></asp:TextBox>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="TextBoxFullName" ErrorMessage='<%$ Resources:Resource, FullName %>' Display="Dynamic" runat="server">*</asp:RequiredFieldValidator>
	</td>	
</tr>
<tr>
	<td><asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Resource,  Email %>"></asp:Literal>:</td>
	<td>
		<asp:TextBox runat="server" ID="TextBoxEmail"></asp:TextBox>
		<asp:RequiredFieldValidator runat="server" ControlToValidate="TextBoxEmail" ID="RFVEmail" ErrorMessage='<%$ Resources:Resource,  Email %>' Display="Dynamic">*</asp:RequiredFieldValidator>
		<asp:RegularExpressionValidator id="valRegEx" runat="server"
			ControlToValidate="TextBoxEmail"
			ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
			ErrorMessage='<%$ Resources:Resource,  Email %>'
			display="dynamic">*
		</asp:RegularExpressionValidator>
		<asp:CustomValidator runat="server" ID="CustomValUserExists" ControlToValidate="TextBoxEmail" ErrorMessage='<%$ Resources:Resource, UserExists %>' Display="Dynamic">*<asp:Literal runat="server" ID="Lit01" Text="<%$ Resources:Resource, UserExists %>"></asp:Literal></asp:CustomValidator>
	</td>	
</tr>
<tr>
	<td><asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Resource,  Password %>"></asp:Literal>:</td>
	<td>
		<asp:TextBox runat="server" ID="TextBoxPassword" TextMode="Password"></asp:TextBox>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator6" ControlToValidate="TextBoxPassword" ErrorMessage='<%$ Resources:Resource, Password %>' Display="Dynamic" runat="server">*</asp:RequiredFieldValidator>
	</td>	
</tr>	
<tr>
	<td><asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Resource,  ConfirmPassword %>"></asp:Literal>:</td>
	<td>
		<asp:TextBox runat="server" ID="TextBoxPassword2" TextMode="Password"></asp:TextBox>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator7" ControlToValidate="TextBoxPassword2" ErrorMessage='<%$ Resources:Resource, Password %>' Display="Dynamic" runat="server">*</asp:RequiredFieldValidator>
		<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBoxPassword" ControlToValidate="TextBoxPassword2" Operator="Equal" ErrorMessage='<%$ Resources:Resource, PasswordsDontMatch %>'>*</asp:CompareValidator>
	</td>	
</tr>
<tr>
	<td><asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Resource,  Telephone %>"></asp:Literal>:</td>
	<td>
		<asp:TextBox runat="server" ID="TextBoxTelephone"></asp:TextBox>
	</td>	
</tr>
<tr>
	<td colspan="2">
		<table cellpadding="0" cellspacing="0">
		<tr>
			<td style="text-align:center;">
				<fieldset><legend><asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Resource, ShippingAddress %>"></asp:Literal></legend>
				<br />
				<CART:Address runat="server" ID="AddressShipping" />
				</fieldset>
			</td>
			<td style="text-align:center;">
				<fieldset><legend><asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Resource, BillingAddress %>"></asp:Literal></legend>
				<asp:CheckBox runat="server" ID="CheckBoxCopyAddress" AutoPostBack="true" Text="Same as shipping." OnCheckedChanged="CheckBoxCopyAddress_Changed" CausesValidation="false" />
				<CART:Address runat="server" ID="AddressBuiling" />
				</fieldset>
			</td>
		</tr>
		</table>				
	</td>
</tr>
<tr><td colspan="2" style="text-align:right;"><asp:Button runat="server" ID="ButtonCheckout" Text="<%$ Resources:Resource,  Checkout %>" OnClick="ButtonCheckoutNewCustomer_Click" /></td></tr>
</table>
<asp:ValidationSummary runat="server" ID="Vsum01" ShowMessageBox="true" ShowSummary="false" DisplayMode="BulletList" HeaderText="<%$ Resources:Resource,  CheckoutLoginError %>" />